Optimal. Leaf size=59 \[ \frac{(a+b) \sin (x)}{2 a b \left (a+b \sin ^2(x)\right )}-\frac{(a-b) \tan ^{-1}\left (\frac{\sqrt{b} \sin (x)}{\sqrt{a}}\right )}{2 a^{3/2} b^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0581525, antiderivative size = 59, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {3190, 385, 205} \[ \frac{(a+b) \sin (x)}{2 a b \left (a+b \sin ^2(x)\right )}-\frac{(a-b) \tan ^{-1}\left (\frac{\sqrt{b} \sin (x)}{\sqrt{a}}\right )}{2 a^{3/2} b^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3190
Rule 385
Rule 205
Rubi steps
\begin{align*} \int \frac{\cos ^3(x)}{\left (a+b \sin ^2(x)\right )^2} \, dx &=\operatorname{Subst}\left (\int \frac{1-x^2}{\left (a+b x^2\right )^2} \, dx,x,\sin (x)\right )\\ &=\frac{(a+b) \sin (x)}{2 a b \left (a+b \sin ^2(x)\right )}-\frac{(a-b) \operatorname{Subst}\left (\int \frac{1}{a+b x^2} \, dx,x,\sin (x)\right )}{2 a b}\\ &=-\frac{(a-b) \tan ^{-1}\left (\frac{\sqrt{b} \sin (x)}{\sqrt{a}}\right )}{2 a^{3/2} b^{3/2}}+\frac{(a+b) \sin (x)}{2 a b \left (a+b \sin ^2(x)\right )}\\ \end{align*}
Mathematica [A] time = 0.0652649, size = 59, normalized size = 1. \[ \frac{(a+b) \sin (x)}{2 a b \left (a+b \sin ^2(x)\right )}-\frac{(a-b) \tan ^{-1}\left (\frac{\sqrt{b} \sin (x)}{\sqrt{a}}\right )}{2 a^{3/2} b^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.05, size = 65, normalized size = 1.1 \begin{align*}{\frac{ \left ( a+b \right ) \sin \left ( x \right ) }{2\,ab \left ( a+b \left ( \sin \left ( x \right ) \right ) ^{2} \right ) }}-{\frac{1}{2\,b}\arctan \left ({\sin \left ( x \right ) b{\frac{1}{\sqrt{ab}}}} \right ){\frac{1}{\sqrt{ab}}}}+{\frac{1}{2\,a}\arctan \left ({\sin \left ( x \right ) b{\frac{1}{\sqrt{ab}}}} \right ){\frac{1}{\sqrt{ab}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.1153, size = 455, normalized size = 7.71 \begin{align*} \left [\frac{{\left ({\left (a b - b^{2}\right )} \cos \left (x\right )^{2} - a^{2} + b^{2}\right )} \sqrt{-a b} \log \left (-\frac{b \cos \left (x\right )^{2} + 2 \, \sqrt{-a b} \sin \left (x\right ) + a - b}{b \cos \left (x\right )^{2} - a - b}\right ) - 2 \,{\left (a^{2} b + a b^{2}\right )} \sin \left (x\right )}{4 \,{\left (a^{2} b^{3} \cos \left (x\right )^{2} - a^{3} b^{2} - a^{2} b^{3}\right )}}, -\frac{{\left ({\left (a b - b^{2}\right )} \cos \left (x\right )^{2} - a^{2} + b^{2}\right )} \sqrt{a b} \arctan \left (\frac{\sqrt{a b} \sin \left (x\right )}{a}\right ) +{\left (a^{2} b + a b^{2}\right )} \sin \left (x\right )}{2 \,{\left (a^{2} b^{3} \cos \left (x\right )^{2} - a^{3} b^{2} - a^{2} b^{3}\right )}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.11243, size = 76, normalized size = 1.29 \begin{align*} -\frac{{\left (a - b\right )} \arctan \left (\frac{b \sin \left (x\right )}{\sqrt{a b}}\right )}{2 \, \sqrt{a b} a b} + \frac{a \sin \left (x\right ) + b \sin \left (x\right )}{2 \,{\left (b \sin \left (x\right )^{2} + a\right )} a b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]